<?php 
session_start();
 ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="../css/login.css">
    <link rel="stylesheet" href="../css/Comment.css">
   <script src="../js/jquery-3.1.1.js"></script>
    <link rel="stylesheet" href="../css/bottom.css">
</head>
<body>
    <header>
  
    </header><!--header 头部-->
    <!--内容-->
    <div class="center">   
     <div class="loginBox">
        <div class="loginTitle">免费邮箱注册</div>
        <!--<input type="twince" name="twince" id="twince" -->
               <!--value="" class="inputText" style="display:none;">-->
        <div class="loginCon">
            <form action="login2.php" method="post">
                
                    <?php 
                    if (isset($_SESSION['login_error'])) {
                        echo('<div style="color:red;">'
                            .$_SESSION['login_error'].'</div>');
                    }
                     ?>
               
                <div class="loginLine mt0">
                    <div class="inputBox inputBox1">
                        <input  class="inputText" id="username" type="text"
                        name="uname" placeholder="用户名">
                        <span class="email">@zhiwen.com</span>
                    </div>
                </div>

                <div class="loginLine">
                    <div class="inputBox inputBox2">
                         <input class="inputText" id="password" 
                         type="password" name="pwd" placeholder="密码">
                    </div>
                </div>
                <div class="forget">
                    <span class="forget1">
                        <a href="" style="color:#f00;text-decoration: underline">忘记密码？</a>
                    </span>
                    <input id="check" type="checkbox" name="check"
                           value="y" checked="true">记住帐号
                </div>

                <div class="error">请输入您的用户名和密码</div>
                <div class="login"><input type="submit" value="登录" id="in"></div>
                <p class="none"><a href="">>>还没有zhiwen邮箱</a></p>
                <div class="button">
                   <a href="register.html" id="reg">立即注册</a>
                </div>
            </form>
        <div class="new">全新TOM邮箱</div>
        </div><!--loginCon-->
    </div><!--loginBox-->
    </div>
    <div id="Bottom_bottom">

    </div>
    <script>
        $(function () {
            var isValid = true;//是否合法
            $('.login').click(function () {
                if($('#username').val() == '' || $('#password').val() == ''){
                    $('.error').css('display','block');
                      isValid = false;
                }else{
                    $('.error').css('display','none');
                  
                }
            })
        })
    $('header').load('header.php');
    $('#Bottom_bottom').load('bottom.html');
    </script>
</body>
</html>